package com.bytezero.springboothomework.third;

/**
 * @Author: Bytezero_zhengLei
 * @Date: 2024/6/24 20:04
 * @Project_Name:
 * @Email: 420498246@qq.com
 * @Description:
 * @TODO:
 */

public class Phone {
    private int id ;
    private String name;
    private String phone;
    private Idcard idcard;

    public Idcard getIdcard() {
        return idcard;
    }

    public void setIdcard(Idcard idcard) {
        this.idcard = idcard;
    }

    public Phone(int id, String name, String phone, Idcard idcard) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.idcard = idcard;
    }

    public Phone() {
    }

    public Phone(int id, String name, String phone) {
        this.id = id;
        this.name = name;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", idcard=" + idcard +
                '}';
    }
}
